import Vue from 'vue'
import App from './App'
import store from './store/index.js'
import config from './config.js'
import http from './util/httpRequest.js'
import * as dateUtil from './util/dateUtil.js'

Vue.config.productionTip = false // 关闭生产模式下的提示
// 注册全局别名
Vue.prototype.$store = store
Vue.prototype.$config = config
Vue.prototype.$http = http
Vue.prototype.$dateUtil = dateUtil
Vue.prototype.$msg = function(title = "", duration = 1500, icon = 'none') { // 统一提示: this.$msg("登录成功")
	uni.showToast({
		title: title,
		duration: duration,
		icon: icon // 取值：none success loading
	});
};

App.mpType = 'app'
const app = new Vue({
	...App,
})
app.$mount()
